lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
↳ QTRS
↳ Overlay + Local Confluence
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
LT(s(x), s(y)) → LT(x, y)
HALF(s(s(x))) → HALF(x)
HELP(x, y) → LT(y, x)
LOGARITHM(x) → LT(0, x)
IFA(true, x) → HELP(x, 1)
IFB(true, x, y) → HALF(x)
IFB(true, x, y) → HELP(half(x), s(y))
HELP(x, y) → IFB(lt(y, x), x, y)
LOGARITHM(x) → IFA(lt(0, x), x)
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
LT(s(x), s(y)) → LT(x, y)
HALF(s(s(x))) → HALF(x)
HELP(x, y) → LT(y, x)
LOGARITHM(x) → LT(0, x)
IFA(true, x) → HELP(x, 1)
IFB(true, x, y) → HALF(x)
IFB(true, x, y) → HELP(half(x), s(y))
HELP(x, y) → IFB(lt(y, x), x, y)
LOGARITHM(x) → IFA(lt(0, x), x)
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDP
HALF(s(s(x))) → HALF(x)
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDP
HALF(s(s(x))) → HALF(x)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
↳ QDP
HALF(s(s(x))) → HALF(x)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
LT(s(x), s(y)) → LT(x, y)
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
LT(s(x), s(y)) → LT(x, y)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ QDPSizeChangeProof
↳ QDP
LT(s(x), s(y)) → LT(x, y)
From the DPs we obtained the following set of size-change graphs:
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
IFB(true, x, y) → HELP(half(x), s(y))
HELP(x, y) → IFB(lt(y, x), x, y)
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
logarithm(x) → ifa(lt(0, x), x)
ifa(true, x) → help(x, 1)
ifa(false, x) → logZeroError
help(x, y) → ifb(lt(y, x), x, y)
ifb(true, x, y) → help(half(x), s(y))
ifb(false, x, y) → y
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
IFB(true, x, y) → HELP(half(x), s(y))
HELP(x, y) → IFB(lt(y, x), x, y)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
half(0)
half(s(0))
half(s(s(x0)))
logarithm(x0)
ifa(true, x0)
ifa(false, x0)
help(x0, x1)
ifb(true, x0, x1)
ifb(false, x0, x1)
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
HELP(x, y) → IFB(lt(y, x), x, y)
IFB(true, x, y) → HELP(half(x), s(y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
half(0)
half(s(0))
half(s(s(x0)))
(1) (IFB(lt(x3, x2), x2, x3)=IFB(true, x4, x5) ⇒ IFB(true, x4, x5)≥HELP(half(x4), s(x5)))
(2) (lt(x3, x2)=true ⇒ IFB(true, x2, x3)≥HELP(half(x2), s(x3)))
(3) (true=true ⇒ IFB(true, s(x12), 0)≥HELP(half(s(x12)), s(0)))
(4) (lt(x14, x15)=true∧(lt(x14, x15)=true ⇒ IFB(true, x15, x14)≥HELP(half(x15), s(x14))) ⇒ IFB(true, s(x15), s(x14))≥HELP(half(s(x15)), s(s(x14))))
(5) (IFB(true, s(x12), 0)≥HELP(half(s(x12)), s(0)))
(6) (IFB(true, x15, x14)≥HELP(half(x15), s(x14)) ⇒ IFB(true, s(x15), s(x14))≥HELP(half(s(x15)), s(s(x14))))
(7) (HELP(half(x6), s(x7))=HELP(x8, x9) ⇒ HELP(x8, x9)≥IFB(lt(x9, x8), x8, x9))
(8) (HELP(x8, s(x7))≥IFB(lt(s(x7), x8), x8, s(x7)))
POL(0) = 0
POL(HELP(x1, x2)) = 1 + x1 - x2
POL(IFB(x1, x2, x3)) = -x1 + x2 - x3
POL(c) = -1
POL(false) = 1
POL(half(x1)) = x1
POL(lt(x1, x2)) = 0
POL(s(x1)) = 1 + x1
POL(true) = 0
The following pairs are in Pbound:
HELP(x, y) → IFB(lt(y, x), x, y)
The following rules are usable:
IFB(true, x, y) → HELP(half(x), s(y))
lt(x, y) → lt(s(x), s(y))
half(0) → 0
true → lt(0, s(x))
false → lt(x, 0)
half(s(0)) → 0
half(s(s(x))) → s(half(x))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
↳ AND
↳ QDP
↳ DependencyGraphProof
↳ QDP
IFB(true, x, y) → HELP(half(x), s(y))
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
half(0)
half(s(0))
half(s(s(x0)))
↳ QTRS
↳ Overlay + Local Confluence
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ DependencyGraphProof
↳ AND
↳ QDP
↳ QDP
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QReductionProof
↳ QDP
↳ NonInfProof
↳ AND
↳ QDP
↳ QDP
↳ DependencyGraphProof
HELP(x, y) → IFB(lt(y, x), x, y)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
lt(0, s(x)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
half(0)
half(s(0))
half(s(s(x0)))